home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / scriptte / sparccof.sc < prev    next >
Encoding:
Text File  |  1994-09-07  |  682 b   |  38 lines

  1. # Linker script for Sparc COFF.
  2. # Based on i386coff.sc by Ian Taylor <ian@cygnus.com>.
  3. test -z "$ENTRY" && ENTRY=_start
  4. cat <<EOF
  5. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  6. ${LIB_SEARCH_DIRS}
  7.  
  8. ENTRY(${ENTRY})
  9.  
  10. SECTIONS
  11. {
  12.   .text ${RELOCATING+ SIZEOF_HEADERS} : {
  13.     *(.init)
  14.     *(.text)
  15.     *(.fini)
  16.     ${RELOCATING+ etext  =  .};
  17.   }
  18.   .data ${RELOCATING+ 0x400000 + (. & 0xffc00fff)} : {
  19.     *(.data)
  20.     ${RELOCATING+ edata  =  .};
  21.   }
  22.   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
  23.   {                     
  24.     *(.bss)
  25.     *(COMMON)
  26.     ${RELOCATING+ end = .};
  27.   }
  28.   .stab  0 ${RELOCATING+(NOLOAD)} : 
  29.   {
  30.     [ .stab ]
  31.   }
  32.   .stabstr  0 ${RELOCATING+(NOLOAD)} :
  33.   {
  34.     [ .stabstr ]
  35.   }
  36. }
  37. EOF
  38.